package com.youhome.response;

/**
 * Created by chen365 on 2017/10/18
 */
public enum ResultCode {
    SUCCESS(0, "成功"),
    FAIL(1, "失败"),
    NO_DATA(2, "暂无数据"),
    HOUSE_ILLEGALITY_ZIP_CODE(3, "非法的邮编地址"),
    HOUSE_ADDRESS_LENGTH_SHORTAGE(4, "地址搜索必须要三个字母以上"),
    HOUSE_CITY_LENGTH_SHORTAGE(5, "城市搜索必须要三个字母以上"),
    UNSUPPORTED_SEARCH_TYPE(6, "不支持的搜索类型"),
    ERROR_PARAMETER(7, "参数错误"),
    ERROR_KEYWORD_LENGTH_THREE(8, "搜索关键字不能少于3个字符"),
    PHONE_ERROR(9, "手机号码不正确"),
    INVALID_ACCESS_TOKEN(10, "无效 Access Token"),
    EXPIRE_ACCESS_TOKEN(11, "Access Token 已经过期"),
    REQUIRE_ACCESS_TOKEN(12, "Access Token 不能为空"),
    FORMAT_ACCESS_TOKEN(13, "Access Token 格式不正确"),
    REQUIRE_AUTHORIZATION(14, "AUTHORIZATION 不能为空"),
    EMPTY_PHONE(15, "手机号不能为空"),
    IS_BINDING_PHONE(16, "手机号已经绑定"),
    EMPTY_MSG_ID(17, "短信验证码ID不为空"),
    EMPTY_MSG_CODE(18, "短信验证码不为空"),
    ERROR_VALIDATE_CODE(19, "短信验证码不正确"),
    VALIDATE_REQUEST_FAILED(20, "短信验证码验证失败"),
    NETWORK_CONNECTION_FAILED(21, "网络连接失败"),
    PHONE_BINDING_FAILED(22, "手机号绑定失败"),
    FORMAT_MSG_CODE(23, "短信格式不正确"),
    NOT_FILLED_CLIENT_INFO(24, "未填写客户信息,请填写"),
    UNBOUND_PHONE(25, "未绑定手机号"),
    EMPTY_NAME(26, "姓名不能为空"),
    NO_DATA_WAS_FOUND(27, "未查询到数据。"),
    METRO_NULL(28, "大都会不能为空"),
    CITY_NULL(29, "城市不能为空"),
    STATE_NULL(30, "州不能为空"),
    COUNTY_NULL(31, "郡县不能为空"),
    HOUSE_COORDINATES_IS_NULL(32, "房源坐标为空"),
    NOT_FOUND_SCHOOL(33, "没有到找到学校"),
    ILLEGAL_OPERATION(34, "非法操作"),
    HAVE_FAVOURITE(35, "房源已收藏"),
    NOT_FAVOURITE(36, "房源未收藏");


    /**
     * 状态
     */
    private Integer status;

    /**
     * 提示信息
     */
    private String msg;

    ResultCode(Integer status, String msg) {
        this.status = status;
        this.msg = msg;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
